//
//  HQTempViewController.m
//  wbOC
//
//  Created by sheji on 16/3/3.
//  Copyright (c) 2016年 sheji. All rights reserved.
//

#import "HQTempViewController.h"

@interface HQTempViewController ()

@end

@implementation HQTempViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];
    self.title = [NSString stringWithFormat:@"第%zd级页面",self.navigationController.childViewControllers.count];
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem barButtonWithTitle:@"push" imageName:nil target:self action:@selector(push)];
    
}
#pragma mark - 监听方法
/**
 *  再见push当前页面
 */
-(void)push
{
    HQTempViewController *vc = [[HQTempViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}

@end
